package org.streets.workflow.engine.entities;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.streets.workflow.engine.IProcessTrace;

/**
 *
 * @author 非也
 * @version 1.0
 * Created on Apr 25, 2009
 */
@SuppressWarnings("serial")
@Entity
@Table(name="WF_RT_PROCESS_TRACE")
public class ProcessTrace implements IProcessTrace, Serializable {
	
    @Id
    private String id;
    @Column
    private String processId ;
    @Column
    private Integer stepNum;
    @Column
    private Integer minorNum = 0;
    @Column
    private String type; //Transition, Loop, JumpTo, Withdraw, Reject
    @Column
    private String edgeId ;
    @Column
    private String fromNodeId;
    @Column
    private String toNodeId;

    /* (non-Javadoc)
     * @see org.streets.workflow.engine.entities.IProcessTrace#getId()
     */
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    /* (non-Javadoc)
     * @see org.streets.workflow.engine.entities.IProcessTrace#getEdgeId()
     */
    public String getEdgeId() {
        return edgeId;
    }

    public void setEdgeId(String edgeId) {
        this.edgeId = edgeId;
    }

    /* (non-Javadoc)
     * @see org.streets.workflow.engine.entities.IProcessTrace#getFromNodeId()
     */
    public String getFromNodeId() {
        return fromNodeId;
    }

    public void setFromNodeId(String fromNodeId) {
        this.fromNodeId = fromNodeId;
    }

    /* (non-Javadoc)
     * @see org.streets.workflow.engine.entities.IProcessTrace#getProcessInstanceId()
     */
    public String getProcessInstanceId() {
        return processId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processId = processInstanceId;
    }

    /* (non-Javadoc)
     * @see org.streets.workflow.engine.entities.IProcessTrace#getStepNum()
     */
    public Integer getStepNum() {
        return stepNum;
    }

    public void setStepNum(Integer stepNumber) {
        this.stepNum = stepNumber;
    }

    /* (non-Javadoc)
     * @see org.streets.workflow.engine.entities.IProcessTrace#getToNodeId()
     */
    public String getToNodeId() {
        return toNodeId;
    }

    public void setToNodeId(String toNodeId) {
        this.toNodeId = toNodeId;
    }

    /* (non-Javadoc)
     * @see org.streets.workflow.engine.entities.IProcessTrace#getType()
     */
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    /* (non-Javadoc)
     * @see org.streets.workflow.engine.entities.IProcessTrace#getMinorNum()
     */
    public Integer getMinorNum() {
        return minorNum;
    }

    public void setMinorNum(Integer minorNumber) {
        this.minorNum = minorNumber;
    }
 
}
